package com.wfm.eduservice.controller;

import com.wfm.commonutils.R;
import org.springframework.web.bind.annotation.*;

/**
 * @author wfm
 * @create 2021-03-08-21:48
 */
@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLoginController {
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }
    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","http://up.deskcity.org/pic/202010/dt/emtbponzvbw3550.jpg");
    }
}
